/** 对象颜色 */
$objectColor: rgb(197, 162, 8);

/** 数组颜色 */
$arrayColor: rgb(126, 6, 6);

$borderRadius: 8px;

#app {
    font-family: "Avenir", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* text-align: center; */
    color: #2c3e50;
    width: 100%;
    height: 100%;
  }
  html,
  body {
    width: 100%;
    height: 100%;
    background-color: #333;
  }
  html,
  body,
  ul,
  li {
    padding: 0;
    margin: 0;
  }
  
  .h_middle {
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
  }
  
  ul,
  li {
    list-style: none;
  }
  
  .popup-div {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2000;
  }
  
  .popup-component {
    position: fixed;
    width: 100%;
    height: 100%;
    /* top: 50%;
    transform: translate3d(0, -50%, 0); */
  }

  .json-root{
    padding: 8px;
  }

.json-object{
    color: $objectColor;
    cursor: pointer;
}

.json-item{
    cursor: pointer;
    padding: 0px 8px;
    display: inline-block;
    position: relative;
    border-radius: $borderRadius;
}

.json-item:hover{
  // outline: #ccc solid 1px;
  background-color: #aaa;
  color: #222;
}

.json-array{
    color: $arrayColor;
    cursor: pointer;
}

.json-string{
    color: #c00;
}

.json-number{
    color: #0c0;
}

.json-boolean{
    color: rgb(141, 5, 112);
}

.array-length{
  margin-left: 8px;
  display: inline-block;
  // position: absolute;
  right: 0;
  border-radius: 50%;
  background-color: #929292;
  color: #eee;
  padding: 0 8px;
}

.json-node-selected{
  background-color: rgb(38, 6, 151);
  color: #eee;
  border-radius: $borderRadius;
}

.json-expand{
  font-size: 20px;
  color: #ccc;
  cursor: pointer;
  display: inline-block;
  padding: 0 4px;
  border-radius: $borderRadius;
}

.json-expand:hover{
  background-color: #aaa;
  color: #222;
}


.detail-button{
  position: fixed;
  top: 16px;
  right: 16px;
}

.json-value{
  color: #ccc;
  position: fixed;
  top: 70px;
  right: 24px;
  padding: 8px;
  background-color: #444;
  border-radius: 8px;
  border: 1px solid #eee;
  min-width: 200px;
  max-width: 600px;
  max-height: 600px;
  overflow: auto;
}


.json-selected-anim1{
  animation: flash 1500ms;
}

.json-selected-anim2{
  animation: flash 1500ms;
}

@keyframes flash{
  0%{
    background-color: #222;
  }

  50%{
    background-color: #888;
  }

  100%{
    background-color: #ccc;
  }
}